home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: Wed, 10 Apr 96 13:30:25 GMT
- Organization: none
- Message-ID: <829143025snz@genesis.demon.co.uk>
- References: <JSA.96Feb16135027@organon.com> <4kb2j8$an0@solutions.solon.com> <TYNOR.96Apr9105114@twratl.atlanta.twr.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <TYNOR.96Apr9105114@twratl.atlanta.twr.com>
- tynor@atlanta.twr.com "Steve Tynor" writes:
-
- >In article <4kcpgkINNcku@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir
- > Kylheku) writes:
- >
- >| 1.3: If I write the code
- >|
- >| int i, j;
- >|
- >| can I assume that (&i + 1) == &j?
- >|
- >| A: Only sometimes. It's not portable, because in EBCDIC, i and j are
- >| not adjacent.
- >
- >What does this have to do with EBCDIC? i and j in this examples are
- >just identifier names of variables -- &i is the address of the
- >variable i. I has nothing whatsoever to do with the EBCDIC (or ASCII
- >or whatever character set you choose) value of the characters 'i' and
- >'j'. The answer is still "only sometimes", but not for the reason
- >given :-). Or did I miss a Date: header of "1 Apr"?
-
- I think you missed the reference to Peter Seebach's (alternative) FAQ. It
- may well have been first posted on April 1st. Try the following for
- instance:
-
-
- 9.2: I heard that structures could be assigned to variables and
- passed to and from functions, but K&R I says not.
-
- A: K&R I was wrong; they hadn't actually learned C very well before
- writing the book. Later, Ritchie got a job at Bell Labs, and worked
- closely with the authors of C, allowing the 2nd edition of the book
- to be much more accurate.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-